 package com.gmrz.uaf.servlet.v1.validation;
 
 public class PayloadValidationException extends Exception
 {
   private static final long serialVersionUID = 1L;
   private String parameterName;
   private RestValidator.VALIDATION_ERROR validationError = RestValidator.VALIDATION_ERROR.NONE;
   private String validationErrorMessage = null;
 
   public String getValidationErrorMessage()
   {
     return this.validationErrorMessage;
   }
 
   public void setValidationErrorMessage(String validationErrorMessage)
   {
     this.validationErrorMessage = validationErrorMessage;
   }
 
   public PayloadValidationException(String parameterName, RestValidator.VALIDATION_ERROR validationError)
   {
     this.parameterName = parameterName;
     this.validationError = validationError;
     this.validationErrorMessage = ("Parameter- " + parameterName + " is " + validationError);
   }
 
   public String getParameterName()
   {
     return this.parameterName;
   }
 
   public RestValidator.VALIDATION_ERROR getValidationError()
   {
     return this.validationError;
   }
 
   public String toString()
   {
     return "ValidationException [" + this.validationErrorMessage + "]";
   }
 }
